// Font Manager
// (c) jimon game studio

#include "CFontManager.h"
#include "CBitmapFont.h"

namespace je
{
	namespace video
	{
		IMPLEMENT_SINGLETON(FontManager,JE_ENGINE_FUNCTION_CALL)

		//! Constructor
		CFontManager::CFontManager()
		{
			SetFontManager(this);
		}

		//! Destructor
		CFontManager::~CFontManager()
		{
			SetFontManager(NULL);
		}

		//! Get Font
		IFont * CFontManager::GetFont(core::IBuffer * Buffer)
		{
			IFont * NewFont = NULL;
			JENEW(NewFont,CBitmapFont(Buffer))
			return NewFont;
		}
	}
}
